// 导入动态路由数据并存储
import { constantRoutes } from '@/router/index'
const state = {
  routesList: constantRoutes
}
const mutations = {
  // 更新路由配置信息
  setRoutesList(state, val) {
    // console.log(val, '222', constantRoutes)
    state.routesList = [...constantRoutes, ...val]
  }
}
const getters = {}
const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  getters,
  actions
}
